﻿using CarAppDomain.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarAppDomain.CarParts.Entities
{
    /// <summary>
    /// 汽车配件类型
    /// </summary>
    [SugarTable("car_parts_type", TableDescription = "管理员")]
    public class CarPartsTypeEntity : BaseEntity
    {

        /// <summary>
        /// 配件中文名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 128, IsNullable = false, ColumnDescription = "配件中文名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 配件英文名称
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 128, IsNullable = true, ColumnDescription = "配件英文名称")]
        public string? EnglishName { get; set; }

        /// <summary>
        /// 分类代码
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 16, IsNullable = false, ColumnDescription = "分类代码")]
        public string? TypeCode { get; set; }

        /// <summary>
        /// 上一级ID
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = true, ColumnDescription = "上一级ID")]
        public string? ParentId { get; set; }
    }
}
